/**
 * 老板主界面路由组件
 */
import React, { Component } from 'react'
import { connect } from 'react-redux'
import UserList from '../../components/userList/UserList'
import { getUserList } from '../../redux/actions'
class Boss extends Component {

    componentDidMount(){
        this.props.getUserList('dashen')
    }
    render() {
        const {userList} = this.props
   
        return (
            <UserList userList= {userList}/>
        )
    }
}

export default connect(
    state =>({userList: state.userList}),
    {getUserList}
)(Boss)